package com.research.domain.entity;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.common.annotation.Excel;
import com.common.core.domain.BaseEntity;

/**
 * 研究机构-规章制度对象 biz_regulation
 *
 * @author hst
 * @date 2025-03-13
 */
public class Regulation extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    private String id;

    /** 机构ID */
    @Excel(name = "机构ID")
    private String researchUnitId;

    /** 规章制度名称 */
    @Excel(name = "规章制度名称")
    private String name;

    /** 附件 */
    @Excel(name = "附件")
    private String fileIds;

    /** 上传时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "上传时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date uploadDate;

    /** 文件说明 */
    @Excel(name = "文件说明")
    private String note;

    private String createUserId;
    private String lastEditUserId;
    private Date createDate;
    private Date lastEditDate;
    private String createUserName;
    private String lastEditUserName;

    public void setId(String id)
    {
        this.id = id;
    }

    public String getId()
    {
        return id;
    }
    public void setResearchUnitId(String researchUnitId)
    {
        this.researchUnitId = researchUnitId;
    }

    public String getResearchUnitId()
    {
        return researchUnitId;
    }
    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }
    public void setFileIds(String fileIds)
    {
        this.fileIds = fileIds;
    }

    public String getFileIds()
    {
        return fileIds;
    }
    public void setUploadDate(Date uploadDate)
    {
        this.uploadDate = uploadDate;
    }

    public Date getUploadDate()
    {
        return uploadDate;
    }
    public void setNote(String note)
    {
        this.note = note;
    }

    public String getNote()
    {
        return note;
    }
    public void setCreateUserId(String createUserId)
    {
        this.createUserId = createUserId;
    }

    public String getCreateUserId()
    {
        return createUserId;
    }
    public void setLastEditUserId(String lastEditUserId)
    {
        this.lastEditUserId = lastEditUserId;
    }

    public String getLastEditUserId()
    {
        return lastEditUserId;
    }
    public void setCreateDate(Date createDate)
    {
        this.createDate = createDate;
    }

    public Date getCreateDate()
    {
        return createDate;
    }
    public void setLastEditDate(Date lastEditDate)
    {
        this.lastEditDate = lastEditDate;
    }

    public Date getLastEditDate()
    {
        return lastEditDate;
    }
    public void setCreateUserName(String createUserName)
    {
        this.createUserName = createUserName;
    }

    public String getCreateUserName()
    {
        return createUserName;
    }
    public void setLastEditUserName(String lastEditUserName)
    {
        this.lastEditUserName = lastEditUserName;
    }

    public String getLastEditUserName()
    {
        return lastEditUserName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("researchUnitId", getResearchUnitId())
                .append("name", getName())
                .append("fileIds", getFileIds())
                .append("uploadDate", getUploadDate())
                .append("note", getNote())
                .append("createUserId", getCreateUserId())
                .append("lastEditUserId", getLastEditUserId())
                .append("createDate", getCreateDate())
                .append("lastEditDate", getLastEditDate())
                .append("createUserName", getCreateUserName())
                .append("lastEditUserName", getLastEditUserName())
                .toString();
    }
}
